﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace NeurOthello.NNetwork
{
    [Serializable]
    class OutputNeuron : Neuron
    {
        public double outVal = 0;

        public OutputNeuron(int nIn, int nInLayer)
            : base(nIn, nInLayer, null)
        {
        }

        public override void Activate() 
        {
            InputFunction();
            outVal = Sigmoid.Sig(activationInput);
        }

        public void BlameOutput(double t)
        {
            this.Err = (t-outVal);
        }        

    }
}
